/**
 * Copyright (c) 2012 Tomi Paananen.
 *
 * Part of Quick Gestures user interface.
 */

import QtQuick 1.1
import "CommonUIConstants.js" as Constants

Text {
    width: parent.width - Constants.DEFAULT_MARGIN
    anchors.centerIn: parent
    color: Constants.DARK_BORDER_COLOR
    horizontalAlignment: Text.AlignHCenter

    font {
        pixelSize: parent.height > parent.width ?
                       parent.width / 8 : parent.height / 6;
    }

    wrapMode: Text.WordWrap

    onParentChanged: {
        width = parent.width - Constants.DEFAULT_MARGIN;
        anchors.centerIn = parent;
    }
}
